tooldir=${pkgdatadir}/tools/gui
tclbin=`which tclsh`
dist_tool_SCRIPTS = DefForm.tcl  mBuild-GUI.tcl  PackForm.tcl  setupCalc.tcl
install : install-am mBuild-GUI
mBuild-GUI : mBuild-GUI.tcl
	echo "#!${tclbin}" > tmp
	cat $+ >> tmp
	mv tmp $@
	chmod +x $@
	mv $@ ${tooldir}/$@
